package org.frog.sgs.card.scheme.type;

/**
 * @author duanxiangqi
 * @date 2012-10-28
 */
public enum JudgeType {
	/**
	 * 闪电
	 */
	shanDian(1, "闪电"),
	/**
	 * 乐不思蜀
	 */
	leBuSiShu(2, "乐不思蜀");

	private int value;

	private String name;

	private JudgeType(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static JudgeType get(int type) {
		for (JudgeType judgeType : JudgeType.values()) {
			if (judgeType.getValue() == type) {
				return judgeType;
			}
		}
		return null;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
